<link  type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" rel="stylesheet"/>
<script type="text/javascript" src="https://www.layuicdn.com/layui/layui.js"></script>
<script type="text/javascript">
    layui.config({
      dir: 'https://www.layuicdn.com/layui/' 
      ,version: false 
      ,debug: false 
      ,base: '' 
    });
</script>



<!-- 框架的弹窗组件文档 "https://www.layui.com/doc/modules/layer.html" -->
<button type="button" class="layui-btn">提示窗</button>

<script type="text/javascript">
	//获取按钮元素
	var btn=$('button.layui-btn');
	btn.click(function(){
		//layui弹出层初始化
		layui.use('layer', function(){
			var layer = layui.layer;
		  //模拟提示框
		  layer.alert('只想简单的提示'); 
		});       
	});
	// 为了方便预览，这里先触发一次click事件
	btn.click();      
</script>